package com.hj.demo;

public class Demo2 {
    public static void main(String[] args) {
        zi zi1=new zi(10,100);
        zi zi2=new zi(20,200);
        zi1.show();
        zi2.show();
        System.out.println(zi1);
    }
}
class fu{
    public int num=10;
    public int number=100;
    public void method(){
        System.out.println("bbb");
    }
    public void fuMethod(){
        System.out.println("AAA");
    }
}
class zi extends fu{
    public int num;
    public int number;

    public zi(int num, int number) {
        this.num = num;
    }

    @Override
    public void method() {
        super.method();
        System.out.println("aaa");
    }

    public void ziMethod(){
        System.out.println("BBB");
    }
    public void show(){
        System.out.println(num+"\t"+number);
    }
}
